.root {
  position: relative;
  display: flex;
  gap: 4px;
  align-items: center;
}

.actions {
  display: flex;
  gap: 4px;
  font-size: 14px;
  align-items: center;
  visibility: hidden;
  user-select: none;
}

.plus,
.handle {
  cursor: pointer;
  color: var(--vd-color-gray-600);
  padding: 4px;
  text-align: center;
  line-height: 0;
  border-radius: 4px;

  &:hover {
    background-color: var(--vd-color-gray-300);
  }
}

.root:hover .actions {
  visibility: visible;
}

.content {
  width: 100%;
  position: relative;
}

.root:global(.selected) .content {
  &::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #1677ff1c;
    pointer-events: none;
    z-index: 1;
  }
}
